package mscs.data.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;


public class Member implements Serializable{
    private String id;
    private String name;
    private int gender;
    private String contact;
    private Date birthday;
    private int totalPoints;
    private int leftPoints;
    private ArrayList<SaleRecord> record;

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getLeftPoints() {
        return leftPoints;
    }

    public void setLeftPoints(int leftPoints) {
        this.leftPoints = leftPoints;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<SaleRecord> getRecord() {
        return record;
    }

    public void setRecord(ArrayList<SaleRecord> record) {
        this.record = record;
    }

    public int getTotalPoints() {
        return totalPoints;
    }

    public void setTotalPoints(int totalPoints) {
        this.totalPoints = totalPoints;
    }
    
    public String genderToString(){
        if(gender == 0)
            return "女";
        else if(gender == 1)
            return "男";
        else
            return "其他";
    }
    
}
